<style>
body {
    font-family: "Arial", "Microsoft YaHei";
    margin: 10px;
    font-size: 12px;
    background: #fff;
}

h1 {
    text-align: center;
    font-weight: 400
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    border: 1px solid #333;
    padding: 2px;
    text-align: center;
}

.info {
    margin-top: 20px;
}

p {
    margin: 0;
    line-height: 1.5
}

.item {
    display: flex;
    justify-content: space-between;
}
</style>
<h1>冻宝云销售成本</h1>
<table>
    <thead>
        <tr>
            <td>序号</td>
            <td>分类</td>
            <td>商品名称</td>
            <td>规格</td>
            <td>数量</td>
            <td>销售额</td>
            <td>成本</td>
        </tr>
    </thead>
    <tbody>
        {volist name="order.list" id="vo"}
        <tr>
            <td>
                {$key+1}
            </td>
            <td>
                {$vo.category}
            </td>
            <td>
                {$vo.goods_name}
            </td>
            <td>
                {$vo.name}
            </td>
            <td>
                {$vo.goods_num}
            </td>
            <td>
                {$vo.price}
            </td>
            <td>
                {$vo.goods_price4}
            </td>
        </tr>
        {/volist}
    </tbody>
    <tfoot>
        <tr>
            <td colspan="5">合计</td>
            <td> {$order.xiaoshou|formatCurrency}</td>
            <td>
                {$order.chenben|formatCurrency}
            </td>
        </tr>
    </tfoot>
</table>
<!-- <script>
    window.onload = function() {
      window.print();
    };
  </script> -->